<div>
  <div class="row">
    <div class="col-lg-12">
      <div class="ibox">
        <h3 class="m-t-none m-b ">添加党组织</h3>
        <div class="ibox-content">
          <div>
            <div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">组织名称</label>
                <div class="col-sm-4">
                  <input v-model="addGovPartyOrgInfo.orgName" type="text" placeholder="必填，请填写组织名称" class="form-control">
                </div>

                <label class="col-sm-2 col-form-label">党组织级别</label>
                <div class="col-sm-4">
                  <select class="custom-select" v-model="addGovPartyOrgInfo.orgLevel" @change="_listAddCommunityOrArea(addGovPartyOrgInfo.orgLevel)">
                    <option selected disabled value="">必填，请选择党组织级别</option>
                    <option value="1001">社区（居委，村委）</option>
                    <option value="2002">小区</option>
                  </select>
                </div>
              </div>

              <div class="form-group row">
                <label class="col-sm-2 col-form-label">上级组织</label>
                <div class="col-sm-4">
                  <select class="custom-select" v-bind:disabled="addGovPartyOrgInfo.orgLevel != 2002"  v-model="addGovPartyOrgInfo.preOrgId" @change="_setAddPreOrgName(addGovPartyOrgInfo.preOrgId)">
                    <option selected disabled value="-1">无</option>
                    <option v-for="(item,index) in addGovPartyOrgInfo.listGovPartyOrgs" :value="item.orgId">
                      {{item.orgName}}</option>
                  </select>
                </div>

                <label class="col-sm-2 col-form-label">所属{{addGovPartyOrgInfo.orgLevel == 1001?'社区（居委，村委）':'小区'}}</label>
                <div class="col-sm-4" v-if="addGovPartyOrgInfo.orgLevel == 1001">
                  <select class="custom-select" v-model="addGovPartyOrgInfo.communityOrArea">
                    <option selected disabled value="">必填，请选择社区（居委，村委）</option>
                    <option v-for="(item,index) in addGovPartyOrgInfo.communityOrAreas" :value="item.caId">
                      {{item.caName}}</option>
                  </select>
                </div>
                <div class="col-sm-4" v-if="addGovPartyOrgInfo.orgLevel == 2002">
                  <select class="custom-select" v-model="addGovPartyOrgInfo.communityOrArea">
                    <option selected disabled value="">必填，请选择小区</option>
                    <option v-for="(item,index) in addGovPartyOrgInfo.communityOrAreas" :value="item.govCommunityId">
                      {{item.communityName}}</option>
                  </select>
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">组织编号</label>
                <div class="col-sm-4">
                  <input v-model="addGovPartyOrgInfo.orgCode" type="text" placeholder="必填，请填写组织编号" class="form-control">
                </div>
                <label class="col-sm-2 col-form-label">名称简称</label>
                <div class="col-sm-4">
                  <input v-model="addGovPartyOrgInfo.orgSimpleName" type="text" placeholder="必填，请填写名称简称"
                    class="form-control">
                </div>
              </div>

              <div class="form-group row">
                <label class="col-sm-2 col-form-label">负责人</label>
                <div class="col-sm-4">
                  <input v-model="addGovPartyOrgInfo.personName" type="text" placeholder="必填，请填写负责人"
                    class="form-control">
                </div>

                <label class="col-sm-2 col-form-label">负责电话</label>
                <div class="col-sm-4">
                  <input v-model="addGovPartyOrgInfo.personTel" type="text" placeholder="必填，请填写负责电话"
                    class="form-control">
                </div>
              </div>
              <div class="form-group row">
                
                <label class="col-sm-2 col-form-label">是否建立党组织</label>
                <div class="col-sm-4">
                  <select class="custom-select" v-model="addGovPartyOrgInfo.orgFlag">
                    <option selected disabled value="">必填，请选择是否建立党组织</option>
                    <option value="01">建立党组织</option>
                    <option value="02">不建立党组织</option>
                  </select>
                </div>
                <label class="col-sm-2 col-form-label">地址</label>
                <div class="col-sm-4">
                  <input v-model="addGovPartyOrgInfo.address" type="text" placeholder="必填，请填写地址" class="form-control">
                </div>
              </div>
              <div class="form-group row">
                <label class="col-sm-2 col-form-label">备注</label>
                <div class="col-sm-10">
                  <textarea placeholder="必填，请填写备注" class="form-control" v-model="addGovPartyOrgInfo.ramark"></textarea>
                </div>
              </div>
                <div class="form-group row">
                  <label class="col-sm-2 col-form-label">党组织简介</label>
                  <div class="col-sm-10 ">
                    <div class=" no-padding">
                      <div class="addPartOrgSummernote"></div>
                    </div>
                  </div>
                </div>
              <div class="ibox-content">
                <button class="btn btn-primary float-right" type="button" v-on:click="saveGovPartyOrgInfo()"><i
                    class="fa fa-check"></i>&nbsp;保存</button>
                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                  data-dismiss="modal" v-on:click="_closeAddGovPartyOrgModel()">取消</button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>